package com.hrd.mybatis.bean.auto;

import java.util.ArrayList;
import java.util.List;

public class HrdWarehouseRelationExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected int limitStart = -1;

    protected int limitEnd = -1;

    public HrdWarehouseRelationExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimitStart(int limitStart) {
        this.limitStart=limitStart;
    }

    public int getLimitStart() {
        return limitStart;
    }

    public void setLimitEnd(int limitEnd) {
        this.limitEnd=limitEnd;
    }

    public int getLimitEnd() {
        return limitEnd;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andHrdWarehouseIdIsNull() {
            addCriterion("hrd_warehouse_id is null");
            return (Criteria) this;
        }

        public Criteria andHrdWarehouseIdIsNotNull() {
            addCriterion("hrd_warehouse_id is not null");
            return (Criteria) this;
        }

        public Criteria andHrdWarehouseIdEqualTo(Integer value) {
            addCriterion("hrd_warehouse_id =", value, "hrdWarehouseId");
            return (Criteria) this;
        }

        public Criteria andHrdWarehouseIdNotEqualTo(Integer value) {
            addCriterion("hrd_warehouse_id <>", value, "hrdWarehouseId");
            return (Criteria) this;
        }

        public Criteria andHrdWarehouseIdGreaterThan(Integer value) {
            addCriterion("hrd_warehouse_id >", value, "hrdWarehouseId");
            return (Criteria) this;
        }

        public Criteria andHrdWarehouseIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("hrd_warehouse_id >=", value, "hrdWarehouseId");
            return (Criteria) this;
        }

        public Criteria andHrdWarehouseIdLessThan(Integer value) {
            addCriterion("hrd_warehouse_id <", value, "hrdWarehouseId");
            return (Criteria) this;
        }

        public Criteria andHrdWarehouseIdLessThanOrEqualTo(Integer value) {
            addCriterion("hrd_warehouse_id <=", value, "hrdWarehouseId");
            return (Criteria) this;
        }

        public Criteria andHrdWarehouseIdIn(List<Integer> values) {
            addCriterion("hrd_warehouse_id in", values, "hrdWarehouseId");
            return (Criteria) this;
        }

        public Criteria andHrdWarehouseIdNotIn(List<Integer> values) {
            addCriterion("hrd_warehouse_id not in", values, "hrdWarehouseId");
            return (Criteria) this;
        }

        public Criteria andHrdWarehouseIdBetween(Integer value1, Integer value2) {
            addCriterion("hrd_warehouse_id between", value1, value2, "hrdWarehouseId");
            return (Criteria) this;
        }

        public Criteria andHrdWarehouseIdNotBetween(Integer value1, Integer value2) {
            addCriterion("hrd_warehouse_id not between", value1, value2, "hrdWarehouseId");
            return (Criteria) this;
        }

        public Criteria andHrdWarehouseNameIsNull() {
            addCriterion("hrd_warehouse_name is null");
            return (Criteria) this;
        }

        public Criteria andHrdWarehouseNameIsNotNull() {
            addCriterion("hrd_warehouse_name is not null");
            return (Criteria) this;
        }

        public Criteria andHrdWarehouseNameEqualTo(String value) {
            addCriterion("hrd_warehouse_name =", value, "hrdWarehouseName");
            return (Criteria) this;
        }

        public Criteria andHrdWarehouseNameNotEqualTo(String value) {
            addCriterion("hrd_warehouse_name <>", value, "hrdWarehouseName");
            return (Criteria) this;
        }

        public Criteria andHrdWarehouseNameGreaterThan(String value) {
            addCriterion("hrd_warehouse_name >", value, "hrdWarehouseName");
            return (Criteria) this;
        }

        public Criteria andHrdWarehouseNameGreaterThanOrEqualTo(String value) {
            addCriterion("hrd_warehouse_name >=", value, "hrdWarehouseName");
            return (Criteria) this;
        }

        public Criteria andHrdWarehouseNameLessThan(String value) {
            addCriterion("hrd_warehouse_name <", value, "hrdWarehouseName");
            return (Criteria) this;
        }

        public Criteria andHrdWarehouseNameLessThanOrEqualTo(String value) {
            addCriterion("hrd_warehouse_name <=", value, "hrdWarehouseName");
            return (Criteria) this;
        }

        public Criteria andHrdWarehouseNameLike(String value) {
            addCriterion("hrd_warehouse_name like", value, "hrdWarehouseName");
            return (Criteria) this;
        }

        public Criteria andHrdWarehouseNameNotLike(String value) {
            addCriterion("hrd_warehouse_name not like", value, "hrdWarehouseName");
            return (Criteria) this;
        }

        public Criteria andHrdWarehouseNameIn(List<String> values) {
            addCriterion("hrd_warehouse_name in", values, "hrdWarehouseName");
            return (Criteria) this;
        }

        public Criteria andHrdWarehouseNameNotIn(List<String> values) {
            addCriterion("hrd_warehouse_name not in", values, "hrdWarehouseName");
            return (Criteria) this;
        }

        public Criteria andHrdWarehouseNameBetween(String value1, String value2) {
            addCriterion("hrd_warehouse_name between", value1, value2, "hrdWarehouseName");
            return (Criteria) this;
        }

        public Criteria andHrdWarehouseNameNotBetween(String value1, String value2) {
            addCriterion("hrd_warehouse_name not between", value1, value2, "hrdWarehouseName");
            return (Criteria) this;
        }

        public Criteria andJdWarehouseIdIsNull() {
            addCriterion("jd_warehouse_id is null");
            return (Criteria) this;
        }

        public Criteria andJdWarehouseIdIsNotNull() {
            addCriterion("jd_warehouse_id is not null");
            return (Criteria) this;
        }

        public Criteria andJdWarehouseIdEqualTo(String value) {
            addCriterion("jd_warehouse_id =", value, "jdWarehouseId");
            return (Criteria) this;
        }

        public Criteria andJdWarehouseIdNotEqualTo(String value) {
            addCriterion("jd_warehouse_id <>", value, "jdWarehouseId");
            return (Criteria) this;
        }

        public Criteria andJdWarehouseIdGreaterThan(String value) {
            addCriterion("jd_warehouse_id >", value, "jdWarehouseId");
            return (Criteria) this;
        }

        public Criteria andJdWarehouseIdGreaterThanOrEqualTo(String value) {
            addCriterion("jd_warehouse_id >=", value, "jdWarehouseId");
            return (Criteria) this;
        }

        public Criteria andJdWarehouseIdLessThan(String value) {
            addCriterion("jd_warehouse_id <", value, "jdWarehouseId");
            return (Criteria) this;
        }

        public Criteria andJdWarehouseIdLessThanOrEqualTo(String value) {
            addCriterion("jd_warehouse_id <=", value, "jdWarehouseId");
            return (Criteria) this;
        }

        public Criteria andJdWarehouseIdLike(String value) {
            addCriterion("jd_warehouse_id like", value, "jdWarehouseId");
            return (Criteria) this;
        }

        public Criteria andJdWarehouseIdNotLike(String value) {
            addCriterion("jd_warehouse_id not like", value, "jdWarehouseId");
            return (Criteria) this;
        }

        public Criteria andJdWarehouseIdIn(List<String> values) {
            addCriterion("jd_warehouse_id in", values, "jdWarehouseId");
            return (Criteria) this;
        }

        public Criteria andJdWarehouseIdNotIn(List<String> values) {
            addCriterion("jd_warehouse_id not in", values, "jdWarehouseId");
            return (Criteria) this;
        }

        public Criteria andJdWarehouseIdBetween(String value1, String value2) {
            addCriterion("jd_warehouse_id between", value1, value2, "jdWarehouseId");
            return (Criteria) this;
        }

        public Criteria andJdWarehouseIdNotBetween(String value1, String value2) {
            addCriterion("jd_warehouse_id not between", value1, value2, "jdWarehouseId");
            return (Criteria) this;
        }

        public Criteria andJdWarehouseNumberIsNull() {
            addCriterion("jd_warehouse_number is null");
            return (Criteria) this;
        }

        public Criteria andJdWarehouseNumberIsNotNull() {
            addCriterion("jd_warehouse_number is not null");
            return (Criteria) this;
        }

        public Criteria andJdWarehouseNumberEqualTo(String value) {
            addCriterion("jd_warehouse_number =", value, "jdWarehouseNumber");
            return (Criteria) this;
        }

        public Criteria andJdWarehouseNumberNotEqualTo(String value) {
            addCriterion("jd_warehouse_number <>", value, "jdWarehouseNumber");
            return (Criteria) this;
        }

        public Criteria andJdWarehouseNumberGreaterThan(String value) {
            addCriterion("jd_warehouse_number >", value, "jdWarehouseNumber");
            return (Criteria) this;
        }

        public Criteria andJdWarehouseNumberGreaterThanOrEqualTo(String value) {
            addCriterion("jd_warehouse_number >=", value, "jdWarehouseNumber");
            return (Criteria) this;
        }

        public Criteria andJdWarehouseNumberLessThan(String value) {
            addCriterion("jd_warehouse_number <", value, "jdWarehouseNumber");
            return (Criteria) this;
        }

        public Criteria andJdWarehouseNumberLessThanOrEqualTo(String value) {
            addCriterion("jd_warehouse_number <=", value, "jdWarehouseNumber");
            return (Criteria) this;
        }

        public Criteria andJdWarehouseNumberLike(String value) {
            addCriterion("jd_warehouse_number like", value, "jdWarehouseNumber");
            return (Criteria) this;
        }

        public Criteria andJdWarehouseNumberNotLike(String value) {
            addCriterion("jd_warehouse_number not like", value, "jdWarehouseNumber");
            return (Criteria) this;
        }

        public Criteria andJdWarehouseNumberIn(List<String> values) {
            addCriterion("jd_warehouse_number in", values, "jdWarehouseNumber");
            return (Criteria) this;
        }

        public Criteria andJdWarehouseNumberNotIn(List<String> values) {
            addCriterion("jd_warehouse_number not in", values, "jdWarehouseNumber");
            return (Criteria) this;
        }

        public Criteria andJdWarehouseNumberBetween(String value1, String value2) {
            addCriterion("jd_warehouse_number between", value1, value2, "jdWarehouseNumber");
            return (Criteria) this;
        }

        public Criteria andJdWarehouseNumberNotBetween(String value1, String value2) {
            addCriterion("jd_warehouse_number not between", value1, value2, "jdWarehouseNumber");
            return (Criteria) this;
        }

        public Criteria andJdSpaceIdIsNull() {
            addCriterion("jd_space_id is null");
            return (Criteria) this;
        }

        public Criteria andJdSpaceIdIsNotNull() {
            addCriterion("jd_space_id is not null");
            return (Criteria) this;
        }

        public Criteria andJdSpaceIdEqualTo(String value) {
            addCriterion("jd_space_id =", value, "jdSpaceId");
            return (Criteria) this;
        }

        public Criteria andJdSpaceIdNotEqualTo(String value) {
            addCriterion("jd_space_id <>", value, "jdSpaceId");
            return (Criteria) this;
        }

        public Criteria andJdSpaceIdGreaterThan(String value) {
            addCriterion("jd_space_id >", value, "jdSpaceId");
            return (Criteria) this;
        }

        public Criteria andJdSpaceIdGreaterThanOrEqualTo(String value) {
            addCriterion("jd_space_id >=", value, "jdSpaceId");
            return (Criteria) this;
        }

        public Criteria andJdSpaceIdLessThan(String value) {
            addCriterion("jd_space_id <", value, "jdSpaceId");
            return (Criteria) this;
        }

        public Criteria andJdSpaceIdLessThanOrEqualTo(String value) {
            addCriterion("jd_space_id <=", value, "jdSpaceId");
            return (Criteria) this;
        }

        public Criteria andJdSpaceIdLike(String value) {
            addCriterion("jd_space_id like", value, "jdSpaceId");
            return (Criteria) this;
        }

        public Criteria andJdSpaceIdNotLike(String value) {
            addCriterion("jd_space_id not like", value, "jdSpaceId");
            return (Criteria) this;
        }

        public Criteria andJdSpaceIdIn(List<String> values) {
            addCriterion("jd_space_id in", values, "jdSpaceId");
            return (Criteria) this;
        }

        public Criteria andJdSpaceIdNotIn(List<String> values) {
            addCriterion("jd_space_id not in", values, "jdSpaceId");
            return (Criteria) this;
        }

        public Criteria andJdSpaceIdBetween(String value1, String value2) {
            addCriterion("jd_space_id between", value1, value2, "jdSpaceId");
            return (Criteria) this;
        }

        public Criteria andJdSpaceIdNotBetween(String value1, String value2) {
            addCriterion("jd_space_id not between", value1, value2, "jdSpaceId");
            return (Criteria) this;
        }

        public Criteria andJdSpaceNumberIsNull() {
            addCriterion("jd_space_number is null");
            return (Criteria) this;
        }

        public Criteria andJdSpaceNumberIsNotNull() {
            addCriterion("jd_space_number is not null");
            return (Criteria) this;
        }

        public Criteria andJdSpaceNumberEqualTo(String value) {
            addCriterion("jd_space_number =", value, "jdSpaceNumber");
            return (Criteria) this;
        }

        public Criteria andJdSpaceNumberNotEqualTo(String value) {
            addCriterion("jd_space_number <>", value, "jdSpaceNumber");
            return (Criteria) this;
        }

        public Criteria andJdSpaceNumberGreaterThan(String value) {
            addCriterion("jd_space_number >", value, "jdSpaceNumber");
            return (Criteria) this;
        }

        public Criteria andJdSpaceNumberGreaterThanOrEqualTo(String value) {
            addCriterion("jd_space_number >=", value, "jdSpaceNumber");
            return (Criteria) this;
        }

        public Criteria andJdSpaceNumberLessThan(String value) {
            addCriterion("jd_space_number <", value, "jdSpaceNumber");
            return (Criteria) this;
        }

        public Criteria andJdSpaceNumberLessThanOrEqualTo(String value) {
            addCriterion("jd_space_number <=", value, "jdSpaceNumber");
            return (Criteria) this;
        }

        public Criteria andJdSpaceNumberLike(String value) {
            addCriterion("jd_space_number like", value, "jdSpaceNumber");
            return (Criteria) this;
        }

        public Criteria andJdSpaceNumberNotLike(String value) {
            addCriterion("jd_space_number not like", value, "jdSpaceNumber");
            return (Criteria) this;
        }

        public Criteria andJdSpaceNumberIn(List<String> values) {
            addCriterion("jd_space_number in", values, "jdSpaceNumber");
            return (Criteria) this;
        }

        public Criteria andJdSpaceNumberNotIn(List<String> values) {
            addCriterion("jd_space_number not in", values, "jdSpaceNumber");
            return (Criteria) this;
        }

        public Criteria andJdSpaceNumberBetween(String value1, String value2) {
            addCriterion("jd_space_number between", value1, value2, "jdSpaceNumber");
            return (Criteria) this;
        }

        public Criteria andJdSpaceNumberNotBetween(String value1, String value2) {
            addCriterion("jd_space_number not between", value1, value2, "jdSpaceNumber");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}